<template>
	<view>
		<image src="../../static/login_bottom.png" mode="" class="bottom_img"></image>
		<view class="logo_img"><image src="../../static/logo.png" mode="" class="logo"></image></view>
		<view class="form_box">
			<view class="form_item"><u-input v-model="user.phone" type="number" :custom-style="{ 'font-size': '15px' }" placeholder="请输入手机号码" /></view>
			<view class="form_item"><u-input v-model="user.password" type="password" :custom-style="{ 'font-size': '15px' }" placeholder="请输入密码" /></view>
			<button type="default" class="btn" hover-class="none" @click="login">登录</button>
			<view class="form_bottom">
				<navigator url="../register/register" hover-class="none"><text>注册账号</text></navigator>
				<navigator url="../forgetPassword/forgetPassword" hover-class="none"><text>忘记密码？</text></navigator>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			user: {}
		};
	},
	methods: {
		login() {
			uni.switchTab({
				url: '../main/main'
			})
		}
	}
};
</script>

<style lang="scss" scoped>
.bottom_img {
	position: fixed;
	width: 100%;
	height: 230upx;
	bottom: 0;
	left: 0;
	z-index: -1;
}

.logo_img {
	padding: 100upx 0;
	text-align: center;
	.logo {
		width: 263upx;
		height: 80upx;
	}
}

.form_box {
	padding: 10upx 60upx;
	.form_item {
		padding: 15upx 0;
		border-bottom: 2upx solid #eeeeee;
		font-size: 30upx;
		input {
			width: 100%;
		}
	}
	.btn {
		margin: 60upx 0 35upx 0;
		width: 100%;
		height: 60upx;
		border-radius: 8upx;
		font-size: 32upx;
		line-height: 60upx;
		color: #ffffff;
		background: #373846;
		border: none;
		&::after {
			border: none;
		}
	}
	.form_bottom {
		display: flex;
		justify-content: space-between;
		color: #373846;
		font-size: 26upx;
		text {
			padding: 5upx;
		}
	}
}
</style>
